<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        h1{color: red}
        h1{color: #ff0000}
        h1{color: #f00}
        h1{color: rgb(255,255,255)}
        h1{color: rgba(255,255,255,0.5)}
        div{
            width: 200px;
            height: 200px;
            background-color: green;
            /*设置背景图片*/
            background-image: url("../b.jpg");
            /*设置背景图片尺寸*/
            background-size: 100px 100px;
            /*禁止重复*/
            background-repeat: no-repeat;
            /*设置背景图片位置 横向 纵向*/
            /*background-position: 100px 100px;*/
            /*通过百分比控制位置*/
            background-position:50% 100%;

        }
    </style>
</head>
<body>
<h1>颜色测试</h1>
<div></div>
</body>
</html>